namespace MaymuseMS.DAL {
    using MaymuseMS.Models;
    using System;
    using System.Collections.Generic;
    using System.Data;
    using System.Data.Entity;
    using System.Linq;
    using System.Linq.Expressions;

    public class InDepositoryRepository : GenericRepository<InDepository> {
        public InDepositoryRepository(MaymuseMSContext context)
            : base(context) {

        }

        public IQueryable<InDepository> Get(Expression<Func<InDepository, bool>> predicate) {
            var inDepository = dbSet.Where(predicate).OrderByDescending(i => i.Date).Take(100);
            return inDepository;
        }
    }
}
